package com.zhiliao.vms.constant;

/**
 * @auther ChasingStar
 * @date 2020/10/21
 **/

public enum ExceptConstant {

    SUCCESS(200,"成功！"),
    NOTFOUNND(404,"页面未找到！"),
    ERROR_METHOD(405,"请求方式错误！"),
    ERROR_FORMAT(415,"媒体格式错误！"),
    BADREQUEST(400,"请求错误！"),
    ERROR_INTERNAL(500,"服务器内部出错！"),

    UNKNOW_EXEPTION(10000,"系统未知异常"),
    USER_EXIST(40001,"用户已被注册"),
    VALID_EXCEPTION( 10001,"未期待的异常"),
    FAILED_UPLOAD(10002,"上传成功！"),
    INVAILD_CHARACTER(10003,"非法的参数！"),
    INVAILD_INSERT(1004,"插入失败！"),
    INVAILD_SELECT(1005,"查询失败！"),
    INVAILD_DELETE(1006,"删除失败！"),
    INVAILD_UPDATE(1007,"更新失败！")
    ;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ExceptConstant(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;
}
